package com.bawei.module_mall.http.intent

import com.bawei.lib_mvi.IIntent
import com.bawei.module_mall.model.AddAddressModel
import com.bawei.module_mall.model.AddShopModel
import com.bawei.module_mall.model.DeleteModel
import com.bawei.module_mall.model.RequestSearchGoodsModel
import com.bawei.module_mall.model.ShopNumberModel
import com.bawei.module_mall.model.UpdateModel
import kotlin.jvm.internal.Ref

sealed class ShopIntent : IIntent {
    data class AddAddress(val addressModel: AddAddressModel) : ShopIntent()
    object GetAddress : ShopIntent()
    object GetAddressProvince : ShopIntent()
    data class GetAddressCity(val provinceId: String) : ShopIntent()
    data class GetAddressHome(val cityId: String) : ShopIntent()
    data class UpdateAddress(val updateModel: UpdateModel) : ShopIntent()
    data class DeleteAddress(val id: Int) : ShopIntent()
    data class GetShopDetail(val id: Int) : ShopIntent()
    data class AddShop(val addShopModel: AddShopModel) : ShopIntent()
    data class ToggleCollect(val goodsId: Int) : ShopIntent()
    data class CheckCollect(val goodsId: Int) : ShopIntent()
    data class DeleteShop(val deleteModel: DeleteModel) : ShopIntent()
    object  GetCollectShop : ShopIntent()
    object GetShop : ShopIntent()
    object GetShopNumber : ShopIntent()
    data class UpdateShopNumber(val shopNumberModel: ShopNumberModel) : ShopIntent()
    data class GetComment(val goodsId:Int,val pageNum:Int,val pageSize:Int):ShopIntent()
    object GetGoodsIds:ShopIntent()






    //橱窗
    data object ViewShowedGoods:ShopIntent()
    data class SearchGoods(val body: RequestSearchGoodsModel):ShopIntent()
    data class CheckGoods(val goodsId:Int):ShopIntent()
    data class ToggleGoods(val goodsId:Int):ShopIntent()
    data class QueryGoods(val body:RequestSearchGoodsModel):ShopIntent()

}